<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateWeichatQueueTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('weichat_queue', function (Blueprint $table) {
            $table->id();
            $table->bigInteger("user_id")->comment("用户id");
            $table->integer("exhibition_id")->comment("展会id");
            $table->unique(['user_id','exhibition_id']);
        });
        DB::statement("ALTER TABLE `weichat_queue` comment'外联参会邀约队列表给TP用的'");//表注释
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('weichat_queue');
    }
}
